﻿using EasyDDD.AdminModule.Domain.AggregateSysMenu;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace EasyDDD.AdminModule.Host.WebAPI.Controllers.Dto
{
    [AutoMapperFrom(typeof(SysMenu))]
    public record SysMenuUpdateResult : Models.SysMenu
    {
        [JsonIgnore]
        public override bool IsDeleted { get; set; }
        [JsonIgnore]
        public override Guid TenantId { get; set; }

        ////放前端转换
        //[JsonPropertyName("auths")]
        //[DisplayName("auths")]
        //public override string Permission { get; set; } = string.Empty;
        ////放前端转换
        //[JsonPropertyName("rank")]
        //[DisplayName("rank")]
        //public override int Sort { get; set; } = default!;
    }
}
